#include <windows.h>
#include <dshow.h>

#include "WinCamera.h"
#include "dshowfun.h"
#include "dshowutil.h"

#include "MyColorConverter.h"

#include "MyFilterChain.h"

void main()
{  
    HRESULT hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
	if (FAILED(hr)){
		return;
	}
	//int cc = WinCamera::count();
	//printf("count:%d\n",cc);
	//WinCamera* cam = WinCamera::get(0);
	//cam->startPreview(0);

	MyFilterChain fc;
	fc.test();
	getchar();

	CoUninitialize();
}

